package com.fg.cloud.manager.entry.agency;

import java.math.BigDecimal;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fg.cloud.common.annotation.Column;
import com.fg.cloud.common.convert.CustomBigDecimalSerialize;
import com.fg.cloud.manager.entry.BaseEntity;

/**
 * 经销商-产品订货权限
 * @author around
 * @date 2017-6-26
 */
public class AgencyProductEntity extends BaseEntity {
	
	private static final long serialVersionUID = 5027791557787977740L;

	/** 厂商ID */
	@Column("ap.facId")
    private Long facId;

	/** 经销商ID */
	@Column("ap.ageId")
    private Long ageId;
    
    /** 产品类别ID */
    private Long categoryId;
	
	/** 产品ID */
    private Long proId;

	/** 产品详情ID */
    private Long skuId;

	/** 订货权限价格 */
    @JsonSerialize(using=CustomBigDecimalSerialize.class)
    private BigDecimal price;

    /** 数据类型：0=产品分类权限，1=产品特价 */
    private Integer type;


    public Long getProId() {
        return proId;
    }

    public void setProId(Long proId) {
        this.proId = proId;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public Long getAgeId() {
        return ageId;
    }

    public void setAgeId(Long ageId) {
        this.ageId = ageId;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

	public Long getFacId() {
		return facId;
	}

	public void setFacId(Long facId) {
		this.facId = facId;
	}

	public Long getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}
    
    
}